package com.gagakuai.bpm.service.camunda;



import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gagakuai.bpm.domian.dto.camunda.WorkFlowInstenceDto;
import com.gagakuai.bpm.domian.entity.camuda.WorkFlowInstence;
import com.gagakuai.bpm.domian.query.camunda.WorkflowQuery;

import java.util.List;


public interface WorkFlowInstenceService {


    int deleteByPrimaryKey(String id);

    int insert(WorkFlowInstence record);

    int insertOrUpdate(WorkFlowInstence record);

    int insertOrUpdateSelective(WorkFlowInstence record);

    int insertSelective(WorkFlowInstence record);

    WorkFlowInstence selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(WorkFlowInstence record);

    int updateByPrimaryKey(WorkFlowInstence record);

    int updateBatch(List<WorkFlowInstence> list);

    int batchInsert(List<WorkFlowInstence> list);


    /*
     * @return {@link Object}
     * @Author houhong
     * @Description //TODO 获取工作流实列
     * @Date 10:48 上午 2022/3/22
     * @param workflowQueryDto 查询dto
     * @param userId 用户id
     */
    IPage<WorkFlowInstenceDto> getApplyProcessByUer(WorkflowQuery workflowQueryDto, String userId) throws Exception;




}

